package code.bolin.ufw.common;

/**
 * @author bolin
 * @create 2023-05
 * @desc
 */
public enum UfwShell {
    STATUS("ufw显示规则并标记编号", "ufw status numbered"),
    ALLOW_ALL_FROM("对指定来源开放全部端口", "ufw allow from %s"),

    ROUTE_ALLOW_ALL_FROM("对指定来源开放全部转发端口", "ufw route allow from %s"),
    DELETE_ALLOW_ALL_FROM("删除指定来源的规则", "ufw delete allow from %s"),
    DELETE_ROUTE_ALLOW_ALL_FROM("删除指定来源的转发规则", "ufw route delete allow from %s"),

    DELETE_NUMBER("删除指定编号的规则", "ufw delete %s"),
    ;
    private String name;
    private String shell;

    private UfwShell(String name, String shell) {
        this.name = name;
        this.shell = shell;
    }

    public String getName() {
        return name;
    }

    public String getShell() {
        return shell;
    }
}
